API Documentation
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
nkDebug::RegisteredTestClass< T, T_NAME > Class Template Reference

Holds informations about a registered test class. More...

Inheritance diagram for nkDebug::RegisteredTestClass< T, T_NAME >:
nkDebug::TestClass

Public Member Functions

 RegisteredTestClass ()
 
- Public Member Functions inherited from nkDebug::TestClass
 TestClass ()
 
 TestClass (const nkLog::StringView &name)
 
virtual ~TestClass ()
 
void execute (const TestRunParameters &parameters) const
 
bool setClassInitFunction (const std::function< bool()> &func)
 
bool setClassShutdownFunction (const std::function< void()> &func)
 
bool setTestFunctionInitFunction (const std::function< bool()> &func)
 
bool setTestFunctionShutdownFunction (const std::function< void()> &func)
 

Static Public Member Functions

static TestClassfactoryFunc ()
 

Static Public Attributes

static TestClass_registered = UnitTester::registerTestClass(&factoryFunc)
 Registering witness.
 

Additional Inherited Members

- Public Attributes inherited from nkDebug::TestClass
FunctionSet _testFunctions
 Registered functions to run.
 
ClassInitFunctionDescriptor * _classInitFunction
 Callback called before calling the test functions.
 
ClassShutdownFunctionDescriptor * _classShutdownFunction
 Callback called after all test functions have been called.
 
ClassInitFunctionDescriptor * _testFunctionInitFunction
 Callback called before calling each function.
 
ClassShutdownFunctionDescriptor * _testFunctionShutdownFunction
 Callback called after calling each function.
 
const char * _name
 Class name for tracking purposes.
 

Detailed Description

template<typename T, const char * T_NAME>
class nkDebug::RegisteredTestClass< T, T_NAME >

Holds informations about a registered test class.

This is used internally within the registering system.

Template Parameters
TThe underlying TestClass type.
T_NAMEThe name linked to the class.

Constructor & Destructor Documentation

◆ RegisteredTestClass()

template<typename T , const char * T_NAME>
nkDebug::RegisteredTestClass< T, T_NAME >::RegisteredTestClass ( )
inline

Default constructor.

Member Function Documentation

◆ factoryFunc()

template<typename T , const char * T_NAME>
static TestClass* nkDebug::RegisteredTestClass< T, T_NAME >::factoryFunc ( )
inlinestatic

Factory creation function.

Returns
An instance of the TestClass type the factory is made for.

The documentation for this class was generated from the following file: